package com.atguigu.order.client;

import com.atguigu.order.entity.vo.CourseOrderVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient("service-edu")
public interface CourseClient {

    /**
     * feign 远程调用 根据课程id 获取课程信息 讲师信息
     *
     * @param courseId 课程id
     * @return
     */
    @GetMapping("/edu/service/client/getCourseInfo/{courseId}")
    public CourseOrderVo getCourseOrderInfo(@PathVariable("courseId") String courseId);
}
